
//如果用uni请求
import http from '@/common/uni.interface.js';

//如果是用uview请求,就用下面这句
//const http = uni.$u.http


//获取用户信息
export function getUserInfo(params){
	return http.get('/userinfo', params)
}

//用户登录
export function userLogin(params){
	return http.post('/login', params)
}
// 订单
export function orderUrl(params){
	return http.get('/goods/price/QueryQuoteDay', params)
}
// 商品
export function goodsUrl(params){
	return http.get('/goods/goods/list', params)
}

 //更改配置项，阻止loading提示
// export function getUserInfo(params){
// 	return http.post('api/login', {custom:{ShowLoading:false}})
// }
export function datasTime(params){
	// return http.get('/goods/datasTime/list', params)
	return http.get('/goods/datasTime/QueryTSData')
}

// 查询K线图-1分钟列表
export function datasOneMin(params){
	return http.get('/goods/datasOneMin/QueryHistoryDatas', params)
}

// 查询K线图-5分钟列表
export function datasFiveMin(params){
	return http.get('/goods/datasFiveMin/QueryHistoryDatas', params)
}

// 查询K线图-30分钟列表
export function datasThreetyMin(params){
	return http.get('/goods/datasThreetyMin/QueryHistoryDatas', params)
}

// 查询K线图-1个小时列表
export function datasOneHour(params){
	return http.get('/goods/datasOneHour/QueryHistoryDatas', params)
}

// 查询K线图-4个小时列表
export function datasFourHour(params){
	return http.get('/goods/datasFourHour/QueryHistoryDatas', params)
}

// 查询K线图-日列表
export function datasDay(params){
	return http.get('/goods/datasDay/QueryHistoryDatas', params)
}

// 查询商品交易价格列表
export function goodsPrice(params){
	return http.get('/goods/price/list', params)
}

// 调用实盘接口获取商品价格
export function queryQuoteDay(params){
	return http.get('/goods/price/QueryQuoteDay', params)
}
